package com.dfbz.demo09_super和this的内存图;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    public static void main(String[] args) {
        Zi zi=new Zi();

        System.out.println(zi.num);

        zi.method();
    }
}

class Fu {
    int num = 10;

    public void method() {
        System.out.println("fu method..");
    }
}

class Zi extends Fu {
    int num = 20;

    public void method() {
        System.out.println("zi method..");
    }
}
